package com.myosw.dao;

import com.myosw.jdbc.common.QueryHelper;

public class WebPageDao {
	
	public int getCount(String url) 
	{
		String sql ="SELECT COUNT(*) FROM webpage WHERE baseUrl LIKE ?";
		return (int) QueryHelper.stat(sql, url+"%");
		
	}
	
	
	public static void main(String[] args) {
		WebPageDao dao = new WebPageDao();
		System.out.println(dao.getCount("http://www.cd-topsec.com"));
	}

}
